﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StuList.aspx.cs" Inherits="Demo623.StuList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div >

            <div>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" />
                <br />
            </div>

            <div>
                姓名：<asp:TextBox ID="UserName" runat="server" ></asp:TextBox><br />
                密码：<asp:TextBox ID="Password" runat="server"></asp:TextBox><br />
                邮箱：<asp:TextBox ID="Email" runat="server"></asp:TextBox><br />
                介绍：<asp:TextBox ID="Intro" runat="server"></asp:TextBox><br />
                <asp:Button ID="Button2" runat="server" Text="提交" OnClick="Button2_Click" style="width: 40px" />
                <br />
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            </div>

            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="800px" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowDeleting="GridView1_RowDeleting" OnRowUpdating="GridView1_RowUpdating" >
                <Columns>
                    <asp:BoundField   DataField="stu_name" HeaderText="姓名" HeaderStyle-Width="170px"/>
                    <asp:BoundField DataField="password" HeaderText="密码" HeaderStyle-Width="170px" />
                    <asp:BoundField DataField="email" HeaderText="邮箱" HeaderStyle-Width="170px" />
                    <asp:BoundField DataField="intro" HeaderText="介绍" HeaderStyle-Width="170px" />
                    <asp:CommandField ButtonType="Button" HeaderText="操作" ShowDeleteButton="True" ShowEditButton="True" ShowHeader="True"   HeaderStyle-Width="80px"/>
                </Columns>
            </asp:GridView>
        </div>

    </form>
</body>
</html>
